package com.google.code.qsecurity.client.event;


public class SignupFormEvent extends SecurityFormEvent {

	/**
	 * Handler type.
	 */
	private static Type<SecurityFormHandler> TYPE;
	
	/**
	 * Creates a new open event.
	 * 
	 * @param target the user signing online
	 */
	public SignupFormEvent(String email) {
		super(email);
	}

	/**
	 * Gets the type associated with this event.
	 * 
	 * @return returns the handler type
	 */
	public static Type<SecurityFormHandler> getType() {
		if (TYPE == null) {
			TYPE = new Type<SecurityFormHandler>();
		}
		return TYPE;
	}

	@Override
	public final com.google.gwt.event.shared.GwtEvent.Type<SecurityFormHandler> getAssociatedType() {
		return TYPE;
	}

	@Override
	protected void dispatch(SecurityFormHandler handler) {
		handler.onDisplay(this);
	}

}
